//
//  DLProgressImageView.h
//  XZDemo
//
//  Created by RookieYX on 16/7/12.
//  Copyright © 2016年 YXRookie. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol XZDownLoadProgressDelegate <NSObject>
/**
 *  开始下载图片
 */
- (void)startDownLoadImage:(UIImageView *)imageView;

@optional
/**
 *  停止下载图片
 */
- (void)cancelDownLoadImage:(UIImageView *)imageView;

@end

@interface DLProgressImageView : UIImageView

@property (nonatomic, assign) id<XZDownLoadProgressDelegate>delegate;

+ (instancetype)DLProgressImageView:(UIView *)superView;
- (instancetype)initDLProgressImageView:(UIView *)superView;

- (void)startDownLoad;
- (void)cancelDownLoad;

@end
